package cn.iocoder.yudao.module.energy.controller.admin.data.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 能耗数据新增/修改 Request VO")
@Data
public class DataSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7894")
    private Long id;

    @Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19251")
    @NotEmpty(message = "设备ID不能为空")
    private String deviceId;

    @Schema(description = "设备名称", example = "芋艿")
    private String deviceName;

    @Schema(description = "数据时间戳", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "数据时间戳不能为空")
    private LocalDateTime timestamp;

    @Schema(description = "电压(V)")
    private BigDecimal voltage;

    @Schema(description = "电流(A)")
    private BigDecimal currents;

    @Schema(description = "功率(kW)")
    private BigDecimal activePower;

    @Schema(description = "累计能耗(kWh)")
    private BigDecimal energyConsumption;

    @Schema(description = "设备温度(℃)")
    private BigDecimal temperature;

    @Schema(description = "状态", example = "1")
    private String status;

}